<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline">
                <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="">
                <span><button type="button" for="activity" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image"  data-url="{:url('ajax/upload',array('from'=>'prizes'))}" data-input-id="c-activity" data-mimetype="image/*" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                <ul class="row list-inline plupload-preview" id="p-image"></ul>
            </div>
        </div>
    </div>


    <div class="form-group">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control summernote" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-startTime" class="control-label col-xs-12 col-sm-2">{:__('StartTime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-startTime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[startTime]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-endTime" class="control-label col-xs-12 col-sm-2">{:__('EndTime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-endTime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endTime]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="99">
        </div>
    </div>
    <div class="form-group">
        <label for="c-jumpUrl" class="control-label col-xs-12 col-sm-2">{:__('JumpUrl')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-jumpUrl" data-rule="required" class="form-control" name="row[jumpUrl]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-isHot" class="control-label col-xs-12 col-sm-2">{:__('IsHot')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-isHot" data-rule="required" class="form-control selectpicker" name="row[isHot]">
                {foreach name="ishotList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label for="c-next" class="control-label col-xs-12 col-sm-2">{:__('Share')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-shareId"   class="form-control"  name="row[shareId]" >
                <option value="0">不分享</option>
                {foreach name="shareList" id="vv"}
                <option value="{$vv.shareId}">{$vv.title}</option>
                {/foreach}
            </select>
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
